﻿@using HelloMinasan.Domain

@helper PrivacySettingMembers(string name, string value)
    {
        if(value == null || value == string.Empty)
        {
            value = PrivacySetting.Public.ToString();
        }
    <select class="SelectUI Theme_ComboBox Theme_UpdateProfile" name="@name" id = "MemberPrivacySetting-@name">
        <option value="@PrivacySetting.Me" @(PrivacySetting.Me.ToString() == value ? "selected = \"selected\"" : null)>
             Just me</option>        
        <option value="@PrivacySetting.MyFriend" @(PrivacySetting.MyFriend.ToString() == value ? "selected = \"selected\"" : null)>
            My friends</option>        
        <option value="@PrivacySetting.Public" @(PrivacySetting.Public.ToString() == value ? "selected = \"selected\"" : null)>
            Everyone</option>
    </select>
}

@helper PrivacySettingPartners(string name, string value)
    {
        if (value == null || value == string.Empty)
        {
            value = PrivacySetting.Public.ToString();
        }
    <select class="SelectUI Theme_ComboBox Theme_UpdateProfile" name="@name">
        <option value="@PrivacySetting.Me" @(PrivacySetting.Me.ToString() == value ? "selected = \"selected\"" : null)>
            Just me</option>       
@*        <option value="@PrivacySetting.MyColleagues" @(PrivacySetting.MyColleagues.ToString() == value ? "selected = \"selected\"" : null)>
            My colleagues</option> *@      
        <option value="@PrivacySetting.Public" @(PrivacySetting.Public.ToString() == value ? "selected = \"selected\"" : null)>
            Everyone</option>
    </select>
}